package contactbook.dao;

import javax.persistence.EntityManager;

import contactbook.model.Account;

/**
 * 
 * @author Guillaume Laborde, Guillaume Lameyre
 *  
 */
public interface AccountDAOInterface {
	
	public static String JNDI = "ContactBookEar/AccountDAO/local";
	
	public Account create(Account account);
	public void delete(int accountId);	
	
	public Account findById(int accountId);
	public Account findByLoginPassword(String login, String password);
	
	public void update(Account account);
	
	/* Change EntityManager : for business layer tests */
	public void setEntityManager(EntityManager em);
}
